package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 微信退款请求返回参数
 */
@Data
public class WeChatChargeBackVo implements Serializable {

    @JsonProperty("refund_id")
    private String refundId;

    @JsonProperty("out_refund_no")
    private String outRefundNo;

    @JsonProperty("transaction_id")
    private String transactionId;

    @JsonProperty("out_trade_no")
    private String outTradeNo;

    private String channel;

    private String status;

    @JsonProperty("funds_account")
    private String fundsAccount;

    private WeChatChargeBackAmountVo amount;

    @Data
    public static class WeChatChargeBackAmountVo {

        private Integer total;

        private Integer refund;

        @JsonProperty("payer_total")
        private Integer payerTotal;

        private String currency = "CNY";
    }

}
